package com.ontheroad.device.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备状态类
 * 
 * @author Yongtao Huang
 */
public class DeviceStatusEntity implements Serializable {

	private static final long serialVersionUID = -7077273757504216906L;
	/**  */
	private String id;
	/**
	 * 设备端口号
	 */
	private Integer port;
	/**
	 * 设备Id
	 */
	private String deviceId;
	/**
	 * 设备类型
	 */
	private String type;
	/**
	 * value: 如果是开关设备，0-关 1-开 如果是调光设备，0-关 >0-亮度值 如果是传感器：表示传感值 如果是空调：0-关 >0-温度值
	 * 如果是调色灯，会有RGBW值
	 */
	private Integer value;
	/**
	 * 红色
	 */
	private Integer read;
	/**
	 * 绿色
	 */
	private Integer green;

	/**
	 * 蓝色
	 */
	private Integer blue;

	/**
	 * 白色
	 */
	private Boolean white;
	/**
	 * 修改时间
	 */
	private Date updateTime;

	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 是否可用 (0：禁用；1：可用)
	 */
	private Boolean isEnable;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public Integer getRead() {
		return read;
	}

	public void setRead(Integer read) {
		this.read = read;
	}

	public Integer getGreen() {
		return green;
	}

	public void setGreen(Integer green) {
		this.green = green;
	}

	public Integer getBlue() {
		return blue;
	}

	public void setBlue(Integer blue) {
		this.blue = blue;
	}

	public Boolean getWhite() {
		return white;
	}

	public void setWhite(Boolean white) {
		this.white = white;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Boolean getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Boolean isEnable) {
		this.isEnable = isEnable;
	}

}
